﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using DTO;
using System.Data;
namespace DAO
{
   public class QuanLyDatHangDAO
    {


       public DataTable layBangMatHang()
        {
            DataTable dt =  new DataTable();

            OleDbConnection cn = DataProvider.ConnectDB();
           
            string str = "Select TenHang from MATHANG"; //MaMatHang,TenHang,MaXuatXu,DVTinh,SoLuongTon,GiaNhap,TinhTrang,GhiChu,GiaBan
            OleDbDataAdapter da = new OleDbDataAdapter(str,cn);
            da.Fill(dt);
            cn.Close();

            return dt;
        }
       
       
    }
}
